﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Xml.Linq;

namespace SmartProject
{
    public class Global : System.Web.HttpApplication
    {
        private const string _className = "Global";
        protected void Application_Start(object sender, EventArgs e)
        {
            const string methodName = "Application_Start";
            Logging.Logger.Log(_className, methodName, "Application is starting...", "Info");

            // Remove all temporary users (if any). This is because if this
            // is a new install, we actually create a temporary user account.
            // We will need to delete the temp accounts lest it becomes a backdoor
            // for a hacker to gain access to the system.
            BusinessObjects.User.ClearAllUsers();
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {
            Logging.Logger.Log(_className, "Application_End", "Application is stopping.", "Info");
        }
    }
}